package core.datamodel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.Hashtable;

public class Event implements Serializable {

	private long id;
	private long resourceId;
	private long externalEventId;
	private Date eventTime;
	private String action; // NEW, START, STOP, SUSPEND, RESUME, DELETE, CHANGE
	private String priority;
	private String description;
	private ArrayList<Property> properties; // nelle property sono inseriti gli elementi che cambiano
	private Resource eventResource;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getResourceId() {
		return resourceId;
	}
	public void setResourceId(long resourceId) {
		this.resourceId = resourceId;
	}
	public long getExternalEventId() {
		return externalEventId;
	}
	public void setExternalEventId(long externalEventId) {
		this.externalEventId = externalEventId;
	}
	public Date getEventTime() {
		return eventTime;
	}
	public void setEventTime(Date eventTime) {
		this.eventTime = eventTime;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public String getPriority() {
		return priority;
	}
	public void setPriority(String priority) {
		this.priority = priority;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public ArrayList<Property> getProperties() {
		return properties;
	}
	public void setProperties(ArrayList<Property> properties) {
		this.properties = properties;
	}
	public Resource getEventResource() {
		return eventResource;
	}
	public void setEventResource(Resource resource) {
		this.eventResource = resource;
	}
	
	

	
	
}
